package com.sigmatrix.h5.message.bigdata;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.sigmatrix.h5.service.log.CommonBigDataMessage;

import io.swagger.annotations.ApiModelProperty;

/**
 * 大数据稽查记录
 * 
 * @author wei.wang
 *
 */
@JsonInclude(Include.NON_NULL)
public class BigDataInspectionMessage extends CommonBigDataMessage {
	
	private static final long serialVersionUID = 9140621007595149800L;
	
	/**
	 * logType：对应大数据表或topic
	 */
	@JsonIgnore
	private final String logType = "codeInspectionRecord";
	
	/**
	 * 记录id
	 */
	protected Integer id;
	@ApiModelProperty(value = "二维码")
	private String qrCode;
	/**
	 * com.sigmatrix.h5.enums.CodeType
	 */
	@ApiModelProperty(value = "码样式", example = "1 seqnum，2 密文码，3 友好码，4第三方码")
	private Integer codeType;
	@ApiModelProperty(value = "level")
	private Integer codeLevel;
	@ApiModelProperty(value = "码级别名称 和字段codeLevel相对应", example = "箱码，盒码，瓶码，...")
	private String codeLevelName;
	private String seqNum;
	@ApiModelProperty(value = "串货检查记录ids,用英文','分割")
	private String fleeCheckRecordIds;
	@ApiModelProperty(value = "经销商/门店id")
	private Integer dealerId;
	@ApiModelProperty(value = "（经销商/门店）类型", example = "1企业（不用）,2经销商,3门店")
	private Integer dealerType;
	@ApiModelProperty(value = "（经销商/门店）名称")
	private String dealerName;
	@ApiModelProperty(value = "产品Id")
	private Integer productId;
	private String productName;
	@ApiModelProperty(value = "产品班次")
	private String productBatchCode;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date productTime;
	/**
	 * CodeInspectStatus
	 */
	@ApiModelProperty(value = "状态", example = "1正常,2同区串货,3跨区串货,4人工判断。")
	private Integer status;
	private String ip;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	private Integer userId;
	private String account;
	@ApiModelProperty(value = "图片访问路径", example = "以英文逗号分隔。")
	private String pictureUrl;
	private String remark;
	private Integer provinceId;
	private Integer cityId;
	private Integer countyId;
	@ApiModelProperty(value = "1正常,2串货")
	private Integer finalStatus;
	
	
	
	public String getLogType() {
		return logType;
	}


	/**
	 * top 平台企业id
	 */
	private Integer topEseId;

	
	public Integer getTopEseId() {
		return topEseId;
	}

	public void setTopEseId(Integer topEseId) {
		this.topEseId = topEseId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getQrCode() {
		return qrCode;
	}

	public void setQrCode(String qrCode) {
		this.qrCode = qrCode;
	}

	public Integer getCodeType() {
		return codeType;
	}

	public void setCodeType(Integer codeType) {
		this.codeType = codeType;
	}

	public Integer getCodeLevel() {
		return codeLevel;
	}

	public void setCodeLevel(Integer codeLevel) {
		this.codeLevel = codeLevel;
	}

	public String getCodeLevelName() {
		return codeLevelName;
	}

	public void setCodeLevelName(String codeLevelName) {
		this.codeLevelName = codeLevelName;
	}

	public String getSeqNum() {
		return seqNum;
	}

	public void setSeqNum(String seqNum) {
		this.seqNum = seqNum;
	}

	public String getFleeCheckRecordIds() {
		return fleeCheckRecordIds;
	}

	public void setFleeCheckRecordIds(String fleeCheckRecordIds) {
		this.fleeCheckRecordIds = fleeCheckRecordIds;
	}

	public Integer getDealerId() {
		return dealerId;
	}

	public void setDealerId(Integer dealerId) {
		this.dealerId = dealerId;
	}

	public Integer getDealerType() {
		return dealerType;
	}

	public void setDealerType(Integer dealerType) {
		this.dealerType = dealerType;
	}

	public String getDealerName() {
		return dealerName;
	}

	public void setDealerName(String dealerName) {
		this.dealerName = dealerName;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductBatchCode() {
		return productBatchCode;
	}

	public void setProductBatchCode(String productBatchCode) {
		this.productBatchCode = productBatchCode;
	}

	public Date getProductTime() {
		return productTime;
	}

	public void setProductTime(Date productTime) {
		this.productTime = productTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPictureUrl() {
		return pictureUrl;
	}

	public void setPictureUrl(String pictureUrl) {
		this.pictureUrl = pictureUrl;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(Integer provinceId) {
		this.provinceId = provinceId;
	}

	public Integer getCityId() {
		return cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}

	public Integer getCountyId() {
		return countyId;
	}

	public void setCountyId(Integer countyId) {
		this.countyId = countyId;
	}

	public Integer getFinalStatus() {
		return finalStatus;
	}

	public void setFinalStatus(Integer finalStatus) {
		this.finalStatus = finalStatus;
	}

}